package com.heima.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 商品表
 */
@Data
@TableName("tb_sku")
public class Sku  {

    private Long skuId;
    private String skuName;
    private String skuImage;
    private Integer price;
    private Integer classId;
    private Integer discount; // 确保数据库有此列
    private String unit;
    private String brandName;

    //  关键：日期时间字段必须是 LocalDateTime
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    //  关键：用户ID字段必须是 Long (与切面要求一致)
    private Long createUser;
    private Long updateUser;

}
